package com.headcaselabs.queue.message;

import java.util.LinkedList;

import com.thoughtworks.xstream.XStream;

public class CancelledJobReport extends Report{
	
	
	public CancelledJobReport(String topic) {
		this.tasks = new LinkedList<String>();
		this.topic = topic;
	}

	
	

	public String toXml() {
		XStream xstream = new XStream();

		xstream.alias("report", Report.class);
		xstream.alias("cancelledJobReport", CancelledJobReport.class);
		String xml = xstream.toXML(this);
		return xml;
	}

	/**
	 * @generated by CodeSugar http://sourceforge.net/projects/codesugar */
	
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("[CancelledJobReport:");
		buffer.append(" topic: ");
		buffer.append(topic);
		buffer.append(" tasks: ");
		buffer.append(tasks);
		buffer.append("]");
		return buffer.toString();
	}
	
	

}
